package com.molichuxing.gateway.bff.order.entity.response;

import java.time.LocalDateTime;

import com.molichuxing.framework.dto.ResponseRootDto;
import com.molichuxing.services.property.OrderTradeFlowStatusEnum;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 订单交易流程vo
 * 
 * @author zoumingyu
 * @date 2019年8月24日
 *
 */
@Data
public class OrderTradeFlowVo extends ResponseRootDto {
	private static final long serialVersionUID = 6454879647639385294L;

	@ApiModelProperty(value = "订单交易流程状态(1：已完成状态，2：当前状态，3：未开始状态)")
	private Integer orderTradeFlowStatus;

	@ApiModelProperty(value = "订单交易流程名")
	private String tradeFlowName;

	@ApiModelProperty(value = "执行时间")
	private LocalDateTime executionTime;

	public OrderTradeFlowVo setOrderTradeFlowStatus(OrderTradeFlowStatusEnum orderTradeFlowStatus) {
		this.orderTradeFlowStatus = orderTradeFlowStatus == null ? null : orderTradeFlowStatus.getValue();
		return this;
	}
}
